﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace SilverlightSdms.UserControls.Scheduler
{
    public partial class MainControlScheduler : UserControl
    {
        public int UserId { get; private set; }

        public MainControlScheduler()
        {
            InitializeComponent();
            this.Calendar.UserId = UserId = ((App)Application.Current).UserId;
            Calendar.InitDates(UserId);
        }

        public void GetCalendarForUser(int UserId)
        {
            this.UserId = UserId;
            Calendar.InitDates(UserId);

        }
    }
}
